Apple, the Apple logo, and Macintosh are registered trademarks of Apple Computer, Inc.
Mac and OpenDoc are trademarks of Apple Computer, Inc. (Palatino/10/Plain)
Making parent method calls
According to SOMobjects Developer Toolkit Users Guide 4-56,
"... the overriding method procedure can conveniently invoke the procedure that one or more of the parent classes uses to implemnt that method... " and
"The SOM-generated implementation header file defines the following macros for making parent-method calls from within an overriding method:
<className>_parent_<parentClassName>_<methodName>
(for each parent class of the class overriding the method), and
<className>_parents_<methodName>."
Making parent method calls in OpenDoc
In OpenDoc, we recommend the use of the first form to make a parent-method call.
For example, if a part (called MyPart) needs to call its parent ODPart's InitPart method, it should use the following macro (defined in MyPart's implementation header file):
WARNING: There are other macros that are generated by SOM for making parent-method calls. However, those short forms may be ambiguous if multiple inheritance is used. Also, some of these short forms exist only for backward compatibility and may not be supported in future versions of SOM.